rotationEffect

Rotates the view by a specified angle in degrees. You can optionally set the anchor point around which the rotation occurs.

Type

1rotationEffect?: number | {
2  degrees: number
3  anchor: KeywordPoint | Point
4}

Example

1<Text rotationEffect={45}>Rotated</Text>

With anchor point:

1<Text
2  rotationEffect={{
3    degrees: 30,
4    anchor: "bottomTrailing"
5  }}
6>
7  Custom Anchor
8</Text>